package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

// 床位信息表实体类
@TableName("bed")
public class Bed {
    // 床位ID (主键)
    @TableId(value = "bed_id", type = IdType.AUTO)
    private Integer bedId;

    // 房间号
    private String roomId;

    // 楼层号
    private String floorId;

    // 床位状态 (空闲, 外出, 有人)
    private String bedStatus;

    // 床位编号
    private String bedCode;

    // 构造函数
    public Bed() {
    }

    // Getters 和 Setters
    public Integer getBedId() { return bedId; }
    public void setBedId(Integer bedId) { this.bedId = bedId; }
    public String getRoomId() { return roomId; }
    public void setRoomId(String roomId) { this.roomId = roomId; }
    public String getFloorId() { return floorId; }
    public void setFloorId(String floorId) { this.floorId = floorId; }
    public String getBedStatus() { return bedStatus; }
    public void setBedStatus(String bedStatus) { this.bedStatus = bedStatus; }
    public String getBedCode() { return bedCode; }
    public void setBedCode(String bedCode) { this.bedCode = bedCode; }

    @Override
    public String toString() {
        return "Bed{" +
                "bedId=" + bedId +
                ", roomId='" + roomId + '\'' +
                ", floorId='" + floorId + '\'' +
                ", bedStatus='" + bedStatus + '\'' +
                ", bedCode='" + bedCode + '\'' +
                '}';
    }
}
